<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
    
    <h:panelGrid columns="2">
	<h:selectBooleanCheckbox id="checkAll" value="#{p_admin.checkAll}" title="#{messages['py.org.atom.title.SelectAll']}">
		<a4j:support event="onclick" action="#{p_admin.doCheckAll}" reRender="results"/>
	</h:selectBooleanCheckbox>  
	
	<rich:togglePanel stateOrder="closed,opened" switchType="client">
 	<f:facet name="closed">
 	<rich:toggleControl value="#{messages['py.org.atom.pagination.next']}#{messages['py.org.atom.pagination.next']}"/>
 	</f:facet>
 	<f:facet name="opened">
 	<f:subview>
	    <a4j:commandLink value="#{messages['py.org.atom.bulk.DeleteLabel']}" 
	    	action="#{p_admin.doBulkAction('D')}" reRender="detail" 
	    	onclick="if(!confirm('#{messages['py.org.atom.bulk.ConfirmDelete']}')){ return false; }"
	    	title="#{messages['py.org.atom.bulk.DeleteLabel']} #{messages['py.org.atom.bulk.DummyLabel']}"
	    	rendered="#{p_delete}"/> <br />
	    <a4j:commandLink value="#{messages['py.org.atom.bulk.DisableLabel']}" 
	    	action="#{p_admin.doBulkAction('I')}"  reRender="detail"
	    	onclick="if(!confirm('#{messages['py.org.atom.bulk.ConfirmDisable']}')){ return false; }"
	    	title="#{messages['py.org.atom.bulk.DisableLabel']} #{messages['py.org.atom.bulk.DummyLabel']}"
	    	rendered="#{p_disable}"/> <br />
	    <a4j:commandLink value="#{messages['py.org.atom.bulk.EnableLabel']}" 
	    	action="#{p_admin.doBulkAction('A')}"  reRender="detail"
	    	title="#{messages['py.org.atom.bulk.EnableLabel']} #{messages['py.org.atom.bulk.DummyLabel']}"
	    	rendered="#{p_enable}"/> <br />
 		<rich:toggleControl value="X" switchToState="closed" />
 	</f:subview>
 	</f:facet>	
	</rich:togglePanel>

     	
	</h:panelGrid>
</ui:composition>